package com.kh.samr.entity.expert;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.kh.samr.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * 参加会议及论文信息
 *
 * @author Harry
 * @date 2020/12/28
 */
@ApiModel(description = "参加会议及论文信息")
@Table(name = "ep_meeting_and_these")
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MeetingAndThese extends BaseEntity {
	
	private static final long serialVersionUID = -6268581774582125560L;
	
	/**
	 * 会议名称
	 */
	@ApiModelProperty(value = "会议名称", readOnly = true)
	@Column(length = 300)
	private String meetingName;
	
	/**
	 * 会议届次
	 */
	@ApiModelProperty(value = "会议届次", readOnly = true)
	@Column(length = 300)
	private String timeNumber;
	
	/**
	 * 主办方
	 */
	@ApiModelProperty(value = "主办方", readOnly = true)
	@Column(length = 100)
	private String sponsor;
	
	/**
	 * 会议时间
	 */
	@ApiModelProperty(value = "会议时间", readOnly = true, example = "yyyy-MM-dd hh:mm:ss")
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
	@JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd hh:mm:ss")
	private Date meetingTime;
	
	/**
	 * 会议地点
	 */
	@ApiModelProperty(value = "会议地点", readOnly = true)
	@Column(length = 100)
	private String venue;
	
	/**
	 * 会议论文唯一标识
	 */
	@ApiModelProperty(value = "会议论文唯一标识", readOnly = true)
	@Column(length = 100)
	private String thesisId;
	
	/**
	 * 会议论文题目
	 */
	@ApiModelProperty(value = "会议论文题目", readOnly = true)
	@Column(length = 300)
	private String title;
	
	/**
	 * 报告类别
	 */
	@ApiModelProperty(value = "报告类别", readOnly = true)
	@Column(length = 100)
	private String reportType;
}
